import request from '@/utils/request'

const loginLog = {
  // 获取登录日志列表
  getLoginLog(data) {
    return request({
      url: '/energy-carbon/grass-core/loginLog/queryPage',
      method: 'post',
      data
    })
  },
  // 导出登录日志列表
  downloadLoginLog(data) {
    return request({
      url: '/energy-carbon/grass-core/loginLog/export',
      method: 'get',
      responseType: 'blob',
      data
    })
  },
  // 批量删除登录日志记录
  deleteLoginLog(data) {
    return request({
      url: '/energy-carbon/grass-core/loginLog/batchDelete',
      method: 'post',
      data
    })
  }
}

export default loginLog
